import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    loginUser:{
      loging:false,
      user:null
    },
  login:false,
  },
  mutations: {
     setUser(state,payload){
      state.loginUser.user  = payload;
     } ,
    setLogin(state,payload){
      state.loginUser.loging = payload;
   },
    setLoginGui(state,payload){
        state.login = payload;
    },
  },
  actions: {
  },
  modules: {
  }
})
